<!--
  @author wangjie
  @since 2019/11/19
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common::jscss"/>

<body>
<div class="layui-fluid">
    <blockquote class="layui-crumb">
        标准化管理> APP公告管理
    </blockquote>
    <div class="layui-card">
        <form method="POST" class="layui-form" id="zmn-form" action="/push/noticeApp/list.action">
            <div th:replace="push/notice/_query::query"/>
        </form>
        <div class="layui-card-body">
            <div th:replace="push/notice/_table::table"/>
        </div>
    </div>
</div>
</body>
</html>
<script type="text/html" id="zmn-table-tool">
    <div class="layui-btn-container">
        <div class="layui-btn-group">
            <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
            <button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="stop">停用</button>
        </div>
        <div class="layui-btn-group">
            <button class="layui-btn layui-btn-primary layui-btn-sm" lay-event="add">+新增</button>
        </div>
    </div>
</script>
<script type="text/html" id="statusTpl">
    <input type="checkbox" name="status" value="{{d.id}}" data_time="{{d.beginTimeStr}}" data-pushType="{{d.putTypeStr}}" lay-skin="switch" lay-text="ON|OFF" lay-filter="status" {{ d.status == 2 ? 'checked' : '' }}>
</script>

<!--主js代码置于html外-->
<script type="text/javascript" th:inline="javascript">

    let json = {
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]]
    };

    layui.config({
        base: "/static/lay/",
        version: 20200321120021
    }).extend({
        index: "lib/index",
        push_notice_list: "push/notice/zmn.push.notice.list",
    }).use(['index', 'push_notice_list']);
</script>
